import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"

@Entity({ name: "piracy", engine: "InnoDB" })
export class PiracyEntity {
  // index
  @PrimaryGeneratedColumn({ type: "int" })
  id: number

  // application name
  @Column({ type: "varchar" })
  app_name: string

  // application id
  @Column({ type: "int" })
  app_id: number

  // domain
  @Column({ type: "varchar", nullable: true })
  domain: string

  // IP
  @Column({ type: "varchar", nullable: true })
  ip: string

  // check date
  @Column({ type: "date" })
  check_date: string
}
